//
//  DataSummaryAPI.swift
//  TimeBoat
//
//  Created by bo wang on 2022/8/25.
//  Copyright © 2022 Time Boat. All rights reserved.
//

import Foundation

extension APIManager {
    @discardableResult
    func getHomeData(uuid: String,
                     imei: String,
                     completion: APICompletion<SummaryDataModel>? = nil)
    -> APITASK? {
        var params = [String: Any]()
        params["userUUID"] = uuid
        params["imei"] = imei
        return POST("terminal-data/query", params, completion)
    }
    
    @discardableResult
    func getHomeADData(completion: APICompletion<SummaryADDataModel>? = nil) -> APITASK? {
        return POST("ad/home-list", [:], completion)
    }
}
